import 'package:fluro/fluro.dart';

import 'package:flutter_popcorntime/routers/routers_handler.dart';

class Routers {
  late FluroRouter router;

  static final Routers _instance = Routers._internal();

  factory Routers() {
    return _instance;
  }

  Routers._internal();

  static String root = "/";
  static String videoDetailPage = "/video-detail-page";

  void configureRoutes(FluroRouter router) {
    this.router = router;
    router.notFoundHandler = Handler(handlerFunc: (context, params) {
      print("ROUTE WAS NOT FOUND !!!");
    });

    router.define(videoDetailPage, handler: videoDetailPageHandler);
  }
}
